package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 联系人表
    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "contacts")
public class Contacts implements Serializable {
    @TableId(value = "contacts_no", type = IdType.INPUT)
    private Integer contactsNo;

    /**
     * 联系人名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 下次联系时间
     */
    @TableField(value = "next_time")
    private Date nextTime;

    /**
     * 手机
     */
    @TableField(value = "mobile")
    private String mobile;

    /**
     * 电话
     */
    @TableField(value = "telephone")
    private String telephone;

    /**
     * 性别
     */
    @TableField(value = "gender")
    private Integer gender;

    /**
     * 电子邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 职务
     */
    @TableField(value = "post")
    private String post;

    /**
     * 客户id
     */
    @TableField(value = "customer_id")
    private Integer customerId;

    /**
     * 地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 创建人id
     */
    @TableField(value = "create_user_id")
    private Long createUserId;

    /**
     * 负责人id
     */
    @TableField(value = "owner_user_id")
    private Long ownerUserId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 最后跟进时间
     */
    @TableField(value = "last_time")
    private Date lastTime;

    /**
     * 最后一条跟进记录
     */
    @TableField(value = "last_content")
    private String lastContent;

    /**
     * 是否关键决策人 0否 1是
     */
    @TableField(value = "is_policymaker")
    private Integer isPolicymaker;

    /**
     * 直属上级
     */
    @TableField(value = "boss")
    private Integer boss;

    private static final long serialVersionUID = 1L;
}